package com.ihr360.message.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 消息发送任务
 *
 * @author tom
 * @date 17-12-28
 */
public class MessageSendTask implements Serializable {


    private String userId;

    private String companyId;

    /**
     * 消息类型
     */
    private int messageType;

    /**
     * 发送服务
     */
    private int service;

    /**
     * 业务实体
     */

    private String dataDto;

    /**
     * 处理状态
     */
    private int doStatus;

    /**
     * 电子表id
     */
    private String sheetId;

    public static MessageSendTask SmsMessageSendTask(String dataDto) {
        MessageSendTask messageSendTask = new MessageSendTask();
        messageSendTask.setMessageType(1);
        messageSendTask.setDoStatus(0);
        messageSendTask.setService(1);
        messageSendTask.setDataDto(dataDto);
        return messageSendTask;
    }

    public static MessageSendTask WeChatMessageSendTask(String dataDto) {
        MessageSendTask messageSendTask = new MessageSendTask();
        messageSendTask.setMessageType(2);
        messageSendTask.setDoStatus(0);
        messageSendTask.setService(1);
        messageSendTask.setDataDto(dataDto);
        return messageSendTask;
    }

    private List<MessageSendRecord> messageList;

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public int getService() {
        return service;
    }

    public void setService(int service) {
        this.service = service;
    }

    public String getDataDto() {
        return dataDto;
    }

    public void setDataDto(String dataDto) {
        this.dataDto = dataDto;
    }

    public int getDoStatus() {
        return doStatus;
    }

    public void setDoStatus(int doStatus) {
        this.doStatus = doStatus;
    }

    public List<MessageSendRecord> getMessageList() {
        return messageList;
    }

    public void setMessageList(List<MessageSendRecord> messageList) {
        this.messageList = messageList;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getSheetId() {
        return sheetId;
    }

    public void setSheetId(String sheetId) {
        this.sheetId = sheetId;
    }
}
